package net.htjs.student.service.impl;

import net.htjs.student.entity.Student;
import net.htjs.student.service.StudentService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    public List getStudents() {
        Student studentOne = new Student(1L, "张三", 18);
        Student studentTwo = new Student(2L, "李四", 18);
        Student studentThree = new Student(3L, "王五", 18);

        List<Student> students = new ArrayList();
        students.add(studentOne);
        students.add(studentTwo);
        students.add(studentThree);
        return students;
    }
}
